package cn.jingyuan.swan.cloud.core;


import cn.jingyuan.bee.exception.SystemException;

/**
 * 警告异常
 * <pre>
 *     默认情况下会直接把警告消息序列化至前端，在国际化中由程序猿控制，若国际化不友好可采用。
 * </pre>
 */
public class WarnException extends SystemException {

    public WarnException(String warning) {
        super(ExCode.WARNING.code, warning);
    }

    public WarnException(String warning, String detailMessage) {
        super(ExCode.WARNING.code, warning, detailMessage);
    }

    public WarnException(String warning, String detailMessage, Throwable cause) {
        super(ExCode.WARNING.code, warning, null, detailMessage, cause);
    }

}
